import { createRouter, createWebHistory } from 'vue-router'
import { staticRoutes} from '@/router/routes'
const router = createRouter({
  //路由模式:history,没有#
  history: createWebHistory(),
  //路由器管理的路由数组:存储在routes文件当中
  routes: staticRoutes,
  //滚动行为
  scrollBehavior() {
    return { top: 0, left: 0 }
  },
})
// 导出路由
export default router
